package git.soulbgm.service;

import git.soulbgm.pojo.BaseMsg;

import java.util.concurrent.ScheduledExecutorService;

/**
 * @author 贺瑞杰
 * @version V1.0
 * @date 2018-10-17 11:02
 * @description
 */
public interface TcpClient {

    /**
     * TCP客户端连接服务端
     */
    void doConnect();

    /**
     * 销毁TCP所用资源
     */
    void destroy();

    /**
     * 发送消息
     */
    boolean sendMsg(BaseMsg msg);

}
